package com.shizhan.shizhan1;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class EmployeeTest {
    @Test
    public void testEmployee() {
        ApplicationContext app = new ClassPathXmlApplicationContext("classpath:shizhanContext.xml");
        Employee employee = (Employee) app.getBean("employee");
        employee.introduce();
        Employee employee1 = (Employee) app.getBean("employee1");
        employee1.introduce();
    }
}
